#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  vector<int> id;
  
  int n = s.size();
  for (int i = 0; i < n; i++) {
    if (s[i] == '#') {
      id.push_back(i + 1);
    }
  }
  int m = id.size();
  for (int i = 0; i < m; i = i + 2) {
    cout << id[i] << "," << id[i + 1] << endl;
  }

  return 0;
}